package com.huqing.icu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huqing.icu.model.HouseUserActionRecord;

public interface UserActionRecordService extends IService<HouseUserActionRecord> {

    /**
     * 点赞房源，保存用户的点赞行为
     *
     * @param userId     用户id
     * @param houseId    房源id
     * @param houseTitle 房源标题
     * @return
     */
    Integer likeHouse(Long userId, Long houseId, String houseTitle);

    Integer favoriteHouse(Long userId, Long houseId, String houseTitle);

    Integer likeComment(Long userId, Long houseId, String houseTitle, Long commentId, String commentContent);


}
